package com.liam.game.util;

import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.IOException;

public class Utils {

    public static BufferedImage getImg(String path){

        try {
//            System.out.println(Utils.class.getClassLoader().getResource(path));
            BufferedImage img = ImageIO.read(Utils.class.getClassLoader().getResource(path));
            return img;
        } catch (IOException e) {
            e.printStackTrace();
        }

        return null;
    }
}
